import {
	ref
} from 'vue';
import {
	defineStore
} from 'pinia'

const useRegisterStore = defineStore('register',
	() => {

		const registerMess = ref(null)

		const setRegisterMess = (obj) => {
			registerMess.value = obj
		}

		return {
			registerMess,
			setRegisterMess
		}


	}, {
		// unistorage: true, // 开启后对 state 的数据读写都将持久化
		unistorage: true
	})

export {
	useRegisterStore
}